package parallels.servertech.client.commands;

import java.io.IOException;

import parallels.servertech.client.CommandContext;
import parallels.servertech.client.CommandHandler;

public class DisconnectHandler implements CommandHandler {
	@Override
	public void handle(String[] args, CommandContext ctx) {
		try {
			ctx.disconnect();
		} catch (IOException ioe) {
			ctx.getOut().printf("failed to disconnect %s(%s)%n", ioe.getClass().getName(), ioe.getMessage());
		}
	}
}
